# -*- coding: utf-8 -*-
from db.mysql import MysqlClient
from common.helper import Helper
class Arrangement( object ):
    def __init__(self):
        self.mysql = MysqlClient()
        self.name = "健康保重大疾病保险(至尊版)保险产品计划"

    def pullData(self, data={}):
        for item in Helper.selectData( self.name,self.mysql ):
            data["name"] = self.name
            data["company"] = "昆仑健康保险"
            data["year"] = item["year"]
            data["gender"] = "0" if item["gender"] == "F" else "1"
            data["money"] = str(int(int(item["money"])/10000)) + "w"
            data["expire"] = item["expire"]
            data["payType"]  = item["payType"]
            data["interval"] = item["interval"]
            data["slightDisease"] = item["ext_item"]
            data["price"] = item["price"]
            Helper.mergeTable( self.name,self.mysql,data )
